package com.un.ebs.production.dto;

import com.un.ebs.product.enums.ProductBomTypeEnum;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class ProductionOrderRebuildDto {

    @NotNull(message = "请指定计划完工时间")
    private Date planDeliverDate;

    @NotNull(message = "请指定计划开工日期")
    private Date planWorkDate;

    @NotNull(message = "请指定生产BOM类型。")
    private ProductBomTypeEnum bomType;

    //private String seqId;

    private String remark;

    private String skuId;

    @Min(message = "生产数量不能小于1", value = 1)
    private double qty;

    @NotNull(message = "请指定产品再造出库的仓库。")
    private String warehouseId;
}
